package com.bean;

import org.springframework.stereotype.Component;

@Component
public class Goods {
    private int id;
    private String goodsname;
    private String goodstype;
    private String goodssub;
    private String price;
    private String jpgurl;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public String getGoodstype() {
        return goodstype;
    }

    public void setGoodstype(String goodstype) {
        this.goodstype = goodstype;
    }

    public String getGoodssub() {
        return goodssub;
    }

    public void setGoodssub(String goodssub) {
        this.goodssub = goodssub;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getJpgurl() {
        return jpgurl;
    }

    public void setJpgurl(String jpgurl) {
        this.jpgurl = jpgurl;
    }

    public Goods(int id, String goodsname, String goodstype, String goodssub, String price, String jpgurl) {
        this.id = id;
        this.goodsname = goodsname;
        this.goodstype = goodstype;
        this.goodssub = goodssub;
        this.price = price;
        this.jpgurl = jpgurl;
    }
    public Goods( String goodsname, String goodstype, String goodssub, String price, String jpgurl) {
        this.goodsname = goodsname;
        this.goodstype = goodstype;
        this.goodssub = goodssub;
        this.price = price;
        this.jpgurl = jpgurl;
    }
    public Goods() {
        super();
    }
}
